home *** CD-ROM | disk | FTP | other *** search
- Path: news.cencom.net!ns!tanp
- From: tanp@ns (Bill Wendling)
- Newsgroups: comp.lang.c
- Subject: Re: Not used functions
- Date: 17 Jan 1996 06:05:30 GMT
- Organization: Cen-Com Internet
- Distribution: world
- Message-ID: <4di3ja$j77@news.cencom.net>
- References: <8B8F2EE.108500D8CB.uuout@dkb.dk>
- NNTP-Posting-Host: ns.cencom.net
- X-Newsreader: TIN [version 1.2 PL2]
-
- ROLAND ERBS inexplicably wrote:
- } Now, I have a lot of string definitions and a lot of functions that I do
- }not use anymore. Both strings and functions are not static-declared. I want to
- }delete these strings and functions.Does anyone know a program who can check if
- }these are used? Can PC-lint do it?
- }
-
- Roland,
-
- The only reliable way I found to delete dead code and be sure that it isn't
- used is to do it manually. A simple text search program should tell you
- which modules/functions are calling the dead code, if any. If none are, then
- delete it. If some are and you can make them stop, do it... I know this
- isn't what you want to hear, but it's true.
-
- --
- Bill Wendling | "Pinky, are you thinking what I'm thinking?"
- tanp@ns.cencom.net | "I think so, Brain, but burlap chafes me so."
- "Boom Shanka" | Finger me for my Geek Code...NOW!
-